<%@ include file="../../base/include.jsp"%>
<div class="well actionbar">
	<div class="row-fluid">
		<form id="searchUser" method="post" style="display: inline;"
			action="<c:url value='/user/list/page/0'/>">
			<input id="searchFilter" name="searchFilter" value="${userListCommand.searchFilter}"
				onkeypress="handleKeyPress(event);" type="text"
				placeholder="Quick search" class="search-query">
			<button id="btnSearch" class="btn secondary"
				onclick="this.form.submit();">
				<i class="icon-search"></i> Search
			</button>
		</form>
		<tiles:insertAttribute name="navigation" />
	</div>
</div>

<script type="text/javascript">
	function handleKeyPress(e) {
		var key = e.keyCode || e.which;
		if (key == 13) {
			doSubmit("searchUser", null);
		}
	}
</script>
